package com.wgchao.amc.repository.base;

import com.wgchao.amc.entity.base.SysBaseFunc;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @作者  wgchao
 * @时间 2019-10-30 
 * @用途  
 */
@Repository
public interface SysBaseFuncRepository  extends JpaRepository<SysBaseFunc, Long>, JpaSpecificationExecutor<SysBaseFunc> {

    SysBaseFunc findFirstByFuncMark(String funcMark);

    List<SysBaseFunc> findAllByMenuId(Long menuId);

    SysBaseFunc findFirstByFuncMarkAndMenuId(String funcMark, Long menuId);
}
